import request from '@/utils/request'

// 查询敏感词信息列表
export function listInfoSensitive(query) {
  return request({
    url: '/business/infoSensitive/list',
    method: 'get',
    params: query
  })
}

// 查询敏感词信息详细
export function getInfoSensitive(id) {
  return request({
    url: '/business/infoSensitive/' + id,
    method: 'get'
  })
}

// 新增敏感词信息
export function addInfoSensitive(data) {
  return request({
    url: '/business/infoSensitive',
    method: 'post',
    data: data
  })
}

// 修改敏感词信息
export function updateInfoSensitive(data) {
  return request({
    url: '/business/infoSensitive',
    method: 'put',
    data: data
  })
}

// 删除敏感词信息
export function delInfoSensitive(id) {
  return request({
    url: '/business/infoSensitive/' + id,
    method: 'delete'
  })
}
